<?php

class RemoveComponent extends BlueprintComponent {
	
	
	function parse(&$element, $recursive = false) {
		if (!$recursive) {
			foreach ($element->childNodes as $node) {
				$element->parentNode->insertBefore($node, $element);
			}
		}
		$element->parentNode->removeChild($element);
	}
}
?>